<!doctype html>
<html>
<head>
<title>WonTube - Device</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<#include "/admin/include/css.html">
</head>
<body>
<div id="page">
	<#include "/admin/include/header.ftl">	 	
	<div class="admin_content">  	
		<h2>WebsiteLink Info 
		<input type="button" id="apply_website_btn" value="删除缓存" />	
		<input type="button" id="add_website_btn" value="增加website" />		
		 | <a href="${contextPath}/admin/website/upload">文件管理</a>			
		</h2>
		<br />
		<table>
			<tr>
				<td>设备:</td>
				<td><select id="sysId">					
					<option value="IPhone">IPhone</option>
					<option value="IPad">IPad</option>
					<option value="Android">Android</option>
					<option value="Website">Website</option>					
				</select></td>	
				<td>国家:</td>
				<td><select id="countryCode">					
					<#if countries??>
						<#list countries as cc>		
							<#if cc.countryCode == 'US'>
								<option value="${cc.countryCode}" selected="true">${cc.countryName}</option>
							<#else>					
								<option value="${cc.countryCode}">${cc.countryName}</option>
							</#if>
						</#list>
					</#if>
				</select></td>					
			</tr>			
		</table>
		<br />
		<div id="website_list_div"></div>			
		
		<#include "/admin/website/website_category.ftl">		
    </div> 
     
     <!-- dialog -->
     <#include "/admin/website/new_website.ftl">  
     <div id="update_website_div" class="content-wrap" 
     style="display:none;background: white;position:absolute;padding: 50px;z-index:1025">
     	<div title="close" class="dialog-close popup-box-close"></div>	
     	<div>Update Website Link ?</span></div>
     	<div id="update_content_div"></div>
	    <div class="dialog-bottom alert-buttom">
		    <button class="dialog-submit dl-submit dl-submit-dis">Update</button>
		    <button class="dialog-cancel dl-submit">Cancel</button>
	    </div>
     </div>    
	  <div class="clear-float"></div>
	 <#include "/admin/include/footer.ftl">
</div>
</body>
<#include "/admin/include/js.html">
<script type="text/javascript" src="${jsRoot}/admin/website_index.js"></script>
</html>